﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace TestConsoleApp
{
    public class TestThreadPool
    {
        public static void Test()
        {
            int workerThreads, completionPortThreads;

            ThreadPool.GetMaxThreads(out workerThreads, out completionPortThreads);
            Console.WriteLine("Max---workerThreads:" + workerThreads + "---completionPortThreads:" + completionPortThreads);

            workerThreads = 0;
            completionPortThreads = 0;

            ThreadPool.GetAvailableThreads(out workerThreads, out completionPortThreads);
            Console.WriteLine("Available---workerThreads:" + workerThreads + "---completionPortThreads:" + completionPortThreads);



            workerThreads = 0;
            completionPortThreads = 0;
            ThreadPool.GetMinThreads(out workerThreads, out completionPortThreads);
            Console.WriteLine("Min---workerThreads:" + workerThreads + "---completionPortThreads:" + completionPortThreads);
        }



        public void Get(params object[] args)
        {


        }

    }
}
